﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="ui_Quartz_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>QuartzNet任务管理</title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server" />
    <ext:Panel ID="Panel1" BodyPadding="5px" runat="server" EnableBackgroundColor="true"
        Title="QuartzNet任务管理" AutoWidth="true">
        <Items>
            <ext:SimpleForm ID="SimpleForm1" runat="server" EnableBackgroundColor="true" ShowBorder="False"
                ShowHeader="False" LabelAlign="Right">
                <Items>
                <ext:DropDownList runat="server" ID="ddlpath" Label="插件路径" ShowLabel="true"></ext:DropDownList>
                  <%--  <ext:TextBox runat="server" ID="txbPath" Label="插件路径" ShowLabel="true" Required="true">
                    </ext:TextBox>--%>
                    <ext:TextBox runat="server" ID="txbCronExp" Label="Cron表达式" ShowLabel="true" Required="true">
                    </ext:TextBox>
                    <ext:TextBox runat="server" ID="TxbCronDesc" Label="Cron描述" ShowLabel="true" Required="true">
                    </ext:TextBox>
                    <ext:Button runat="server" ID="btnok" Text="PlugIn" ValidateForms="SimpleForm1" OnClick="btnok_Click" />
                    <ext:Button runat="server" ID="btnremove" Text="卸载" ValidateForms="SimpleForm1" OnClick="btnremove_Click" />
                </Items>
            </ext:SimpleForm>
            <ext:ContentPanel runat="server" >
            <div>每30分钟：0 0/30 * 1/1 * ? *</div>
            <div>每6小时：0 0 0/6 1/1 * ? *</div>
            <div>每天8点：0 0 8 1/1 * ? *</div>
            <div>周一到周五每天8点：0 0 8 ? * MON,TUE,WED,THU,FRI *</div>
            </ext:ContentPanel>

<%--            <ext:Grid ID="Grid1" Title="作业列表" ShowBorder="true" ShowHeader="true" AutoHeight="true"
                runat="server" EnableCheckBoxSelect="true" DataKeyNames="SCHED_NAME,PATH" EnableRowNumber="True"
                EnableTextSelection="true" AllowPaging="true" ForceFitAllTime="true" IsDatabasePaging="true"
                OnPageIndexChange="Grid1_PageIndexChange" OnRowCommand="Grid1_RowCommand" >
                <Columns>
                    <ext:BoundField DataField="SCHED_NAME" DataFormatString="{0}" ExpandUnusedSpace="True"
                        HeaderText="调度名称" />
                    <ext:BoundField DataField="JOB_NAME" DataFormatString="{0}" ExpandUnusedSpace="True"
                        HeaderText="作业名称" />
                    <ext:BoundField DataField="JOB_GROUP" DataFormatString="{0}" ExpandUnusedSpace="True"
                        HeaderText="作业组" />
                    <ext:BoundField DataField="JOB_CLASS_NAME" DataFormatString="{0}" ExpandUnusedSpace="True"
                        HeaderText="作业类名" Width="250px" />
                    <ext:BoundField DataField="TRIGGER_NAME" DataFormatString="{0}" ExpandUnusedSpace="True"
                        HeaderText="触发器名称" />
                    <ext:TemplateField HeaderText="下次执行时间" Width="180px">
                        <ItemTemplate>
                            <%#GetDateTimeFromDbValue(Eval("NEXT_FIRE_TIME"))%>
                        </ItemTemplate>
                    </ext:TemplateField>
                    <ext:TemplateField HeaderText="上次执行时间" Width="180px">
                        <ItemTemplate>
                            <%#GetDateTimeFromDbValue(Eval("PREV_FIRE_TIME"))%>
                        </ItemTemplate>
                    </ext:TemplateField>
                    <ext:BoundField DataField="TRIGGER_STATE" DataFormatString="{0}" ExpandUnusedSpace="True"
                        HeaderText="触发器状态" />
                    <ext:BoundField DataField="tDESCRIPTION" DataFormatString="{0}" ExpandUnusedSpace="True"
                        HeaderText="触发器描述" />
                    <ext:BoundField DataField="DESCRIPTION" DataFormatString="{0}" ExpandUnusedSpace="True"
                        HeaderText="作业描述" />
                    <ext:BoundField DataField="PATH" DataFormatString="{0}" ExpandUnusedSpace="True"
                        HeaderText="DLL路径" />
                    <ext:BoundField DataField="IS_DURABLE" DataFormatString="{0}" ExpandUnusedSpace="True"
                        HeaderText="是否持久化" />
                    <ext:BoundField DataField="IS_NONCONCURRENT" DataFormatString="{0}" ExpandUnusedSpace="True"
                        HeaderText="是否并发" />
                    <ext:BoundField DataField="IS_UPDATE_DATA" DataFormatString="{0}" ExpandUnusedSpace="True"
                        HeaderText="是否可更新数据" />
                    <ext:BoundField DataField="REQUESTS_RECOVERY" DataFormatString="{0}" ExpandUnusedSpace="True"
                        HeaderText="可恢复标记" />
                    <ext:LinkButtonField Icon="PlayBlue" CommandName="Resume" ToolTip="恢复" ConfirmTarget="Top"
                        ConfirmText="请确认操作"   ConfirmIcon="Information" ExpandUnusedSpace="true" HeaderText="." />
                    <ext:LinkButtonField Icon="PauseBlue" CommandName="Pause" ToolTip="暂停" ConfirmTarget="Top"
                        ConfirmText="请确认操作" ConfirmIcon="Information" ExpandUnusedSpace="true" HeaderText="." />
                    <ext:LinkButtonField Icon="Delete" CommandName="Delete" ToolTip="删除" ConfirmTarget="Top"
                        ConfirmText="此操作不可恢复" ConfirmIcon="Warning" ExpandUnusedSpace="true" HeaderText="." />
                </Columns>
            </ext:Grid>
--%>        </Items>
    </ext:Panel>
    </form>
</body>
</html>
